﻿@model FloodFree.Web.ViewModels.CityAddViewModel


@{
    ViewBag.Title = "Create";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>New City</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>City</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.City.Name)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.City.Name)
            @Html.ValidationMessageFor(model => model.City.Name)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.City.State.Name)
        </div>
        <div class="editor-field">
             
           

            @Html.ValidationMessageFor(model => model.City.State.Name)
        </div>


       
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

